package pro.wy.adapterpattern.adapterpattern;

import pro.wy.adapterpattern.impl.PlayerYaoImpl;
import pro.wy.adapterpattern.interfaces.IPlayerChinese;
import pro.wy.adapterpattern.interfaces.IPlayerEnglish;

public class NbaAdapter implements IPlayerEnglish {
	private IPlayerChinese player;

	public NbaAdapter() {
		player = new PlayerYaoImpl();
	}

	@Override
	public void talk(String name) {
		player.talk();
	}
}
